home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / info-service / archie / ls-format < prev    next >
Encoding:
Text File  |  1991-10-10  |  2.7 KB  |  55 lines

  1.             ARCHIE LS LISTING FORMATS
  2.  
  3. If you run an archive site and want to help archie out in maintaining
  4. your site in the database, please read the following.
  5.  
  6. Some archive sites have adopted the practice of having a cron
  7. job generate an "ls-lR.Z" file in the root directory (automatically) on a
  8. frequent basis (depending on how often the files at your site change). We
  9. would like to see this practice adopted by all archive sites: it lessens
  10. the the network load by having the file compressed so less traffic has to
  11. flow and it lessens the load on the site host since the adminstrators can
  12. determine when it is most convenient for the program to run. If it is
  13. possible for you to set up such a system, there are three conditions that
  14. would make easier for us:
  15.  
  16. (1) Before the ls is done, a cd is done into the ~ftp directory so that
  17. the pathnames generated don't have something like "/usr/pub/ftp"
  18. prepended to them. As you can imagine everybody puts there ~ftp somewhere
  19. else and we have to deal with each one of these individually. Don't worry
  20. if your ls generates "./" in front of the directory name, we can handle
  21. it.
  22.  
  23. Please DO NOT cd into the ~ftp/pub, or whatever directory you have most
  24. of your archived files in. The reason is that we depend on the listing
  25. being in the ~ftp directory so that the pathnames that archie generates
  26. are correct. We have had many cases of ls-lR.Z files being generated from
  27. ~ftp/pub and so files that should have the name /pub/foobar come out
  28. looking like /foobar. It doesn't bother us to have directories like /bin
  29. and /etc listed... it takes up about 12 bytes in the database for each
  30. extra one and since the database is almost 70Mb we say "hah" ! :-)
  31.  
  32.  
  33. (2) Make sure that all symbolic links are resolved. We have found that
  34. this is the main cause for error messages being interspersed through the
  35. listing. We often get "foobar not found" messages in the listings.
  36.  
  37. Since these error messages are written to stderr while the listing is
  38. written to stdout, they tend to appear randomly in the listing making it
  39. difficult for our software to parse it.
  40.  
  41. (3) Make sure that no "Permission denied" messages are generated by ls.
  42. If you don't want anonymous ftp to be able to go into that directory just
  43. make it unreadable, and so only "unreadable" messages are generated which
  44. are written to stdout and can be handled in the general run of things.
  45.  
  46.  
  47. Once you've done this, you can drop me a line at 
  48.  
  49.     archie-admin@cs.mcgill.ca
  50.  
  51. and tell me. I periodically make passes through the database to find out
  52. who does and does not have the file but it is time consuming (getting the
  53. files and checking out that everything is ok) so that if you can tell me
  54. that it's ok, I'll take your word for it.
  55.